<#include "header.ftl" />
<#if post?exists>
	<@head title="${post.title} - ${spaceTitle}" keyword=post_keyword description=post_description />
<#else>
	<@head title="404 - ${spaceTitle}"/>
</#if>

<#include "side.ftl" />
<div class="g-content">
    <div class="g-content-container">
        <div class="g-p">
        	<div class="m-content">
	        	<#if post?exists>
					<div class="content-title">
						${post.title}
					</div>
					<div class="content-meta">
						发表于${post.createTime?string("yyyy-MM-dd hh:mm:ss")}, 已有<@postViews id=post.id />次阅读, 分类：${post.catalog.name}
					</div>
					<div class="content-info img-range">
						${post.content}
					</div>
					<div class="typo-p" style="margin-top:20px;">
						<div id="mlog-comment-form"></div>
			   			<div id="mlog-comment-list"></div>
			   			<link type="text/css" href="${base}/style/comment.css" rel="stylesheet">
			   			<script type="text/javascript" src="${template_url}/plugin/comment/mlog.comment.js"></script>
			   			<script type="text/javascript">
			   				MCMT.conf.fkey = '${post.id}';
			   				MCMT.conf.ftype = 'POST';
			   				MCMT.conf.toUser = '${post.author.id}';
			   				MCMT.conf.maxlength = 300;
			   				MCMT.UI();
			   			</script>
			   		</div>
				<#else>
					<div class="alert alert-error">
						<h3 class="alert-header"><i class="icon-cancel-circle">&nbsp;</i>404</h3>
						未找到您要查看的文章。
					</div>
	        	</#if>
	   		</div>
        </div>
    </div>
</div>
<#include "footer.ftl" />